package com.lhn;

import com.lhn.config.SpringConfig;
import com.lhn.service.BookService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author lhn
 * @date 2024-08-19 16:29
 */

public class App12 {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(SpringConfig.class);
        BookService bookService = (BookService) ctx.getBean(BookService.class);
        bookService.save();
    }
}
